﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BlueCMS.Core.Data.Query.Columns;
using BlueCMS.Core.Data.Query.Tables;

namespace BlueCMS.Core.Data.Query.Clauses
{
    public class InsertClause : IInsertClause
    {
        public InsertTable InsertTable { get; private set; }
        public List<InsertColumn> InsertColumns { get; private set; }

        public InsertClause()
        {
            InsertColumns = new List<InsertColumn>();
        }

        public IInsertTable Table(string name)
        {
            InsertTable = new InsertTable(name);
            return InsertTable;
        }

        public IInsertClause Column(string name)
        {
            InsertColumn column = new InsertColumn(name);
            InsertColumns.Add(column);
            return this;
        }
    }
}
